Skip to content

Reduce sequential verification and webhook latency - #45

Merged
kentbull merged 1 commit into
masterfrom
perf/issuer-evidence
Nov 1, 2026
Merged

kentbull merged 1 commit into
masterfrom
perf/issuer-evidence

Conversation

@kentbull

@kentbull kentbull commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Current-epoch receipt and credential checks repeatedly walked the issuer KEL to rediscover its accepted establishment event and witness set. This amplified queue latency as issuer history grew.

Use KERIpy's accepted key-state index for accepted events in the current establishment epoch, in both receipt parsing and credential evidence. Older anchors retain native historical traversal. Unknown, future, missing-index and missing-body cases preserve the native lookup contract. Signature verification, live revocation checks, atomic nonce claims, sequential phase transitions and synchronous LMDB commits remain in place.

The root scheduler cadence changes from 31.25 ms to 5 ms. The default ordinary webhook spacing changes from 1 s to 5 ms; operators can still set --webhook-interval. Failure backoff, Retry-After and attempt limits are unchanged. Operations documentation explains these defaults and queue-wait behavior.

Validation:

  • Native lookup tests cover warm/reloaded state, witness rotation, unknown/future events and missing KEL entries/event bytes.
  • Broader installed-wheel checks: 213 passed; the one pacing test was updated to configure its intended one-second interval explicitly, retaining its assertion. All seven delivery-policy tests then passed.
  • Separate native rotation checks retained historical witness authority, rejected missing/wrong receipts and rejected a subsequently revoked credential.
  • Prototype local credential validation median: 82.8 ms to 4.94 ms. Two small replay comparisons reached 4.36–5.60 associations/s with indexed parsing and faster cadence, versus 2.14–2.16/s before. These are local measurements, not a deployment capacity guarantee.

Final CI installed-wheel suite: 273 passed (run). The separate local fresh installed-wheel replay also passed: 273 passed, 507 warnings in 530.25 s, outside the source checkout. Local wheel SHA-256: 69261cab585d13f97f5327537b778c4568dbdc52f194648c05e96b7b34cc929c.

Oracle/Comply maintained paired qualification passed as part of Oracle's complete fresh installed-wheel suite: 87 passed, locally and in CI. Exact producer: e05392b200774ac71e5ee4a4e09c76acfb70a53e; contracts: 3d821564e5b7e4b730de47fe9d3c2fff0e87b6f8. Oracle pin advancement is Oracle PR #74.

KERIpy remains pinned at 1.2.19; no upstream library changes are included.

Use accepted KERI key-state indexes for current-epoch establishment and witness lookups in receipt parsing and credential evidence. Keep native historical traversal for older anchors and preserve missing-event behavior, signature validation, revocation checks, and durable nonce claims.

Advance workers on a five-millisecond scheduler cadence and use the same minimum default spacing for ordinary webhook starts. Failure backoff, Retry-After, finite attempts, sequential phase transitions, and synchronous LMDB commits retain their existing behavior.

Add native lookup-contract coverage for warm and reloaded state, witness rotation, unknown and future events, missing accepted entries, and absent event bytes. Preserve one-second pacing assertions by configuring those tests explicitly. Focused installed-wheel checks passed after the pacing fixture adjustment; full wheel and paired qualification follow.
@kentbull
kentbull merged commit e05392b into master Nov 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant